package com.czh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czh.domain.ResponseResult;
import com.czh.domain.dto.QueryCategoryDto;
import com.czh.domain.entity.Category;
import com.czh.domain.vo.CategoryVo;
import com.czh.domain.vo.CategoryPageVo;

import java.util.List;

/**
 * 分类表(Category)表服务接口
 *
 * @author makejava
 * @since 2024-03-19 17:47:57
 */
public interface CategoryService extends IService<Category> {

    ResponseResult<List<CategoryVo>> getCategoryList();

    ResponseResult<List<CategoryVo>> listAllCategory();

    ResponseResult<CategoryPageVo> getCategoryPageList(Integer pageNum, Integer pageSize, QueryCategoryDto queryCategoryDto);

    ResponseResult<Object> addCategory(Category category);

    ResponseResult<Object> deleteCategory(Long id);

    ResponseResult<CategoryVo> getCategoryById(Long id);

    ResponseResult<Object> updateCategory(Category category);
}

